<div class="layui-form-item">
    <label class="layui-form-label">{$form.title}</label>
    <div class="layui-input-block">
        <?php
            $dataId = [];
            if(!empty($info)){
                $dataId = explode(',',$info->getData($form['field']));
            }
        ?>
        <?php foreach($form['value'] as $k=>$v){?>
        {if in_array($k,$dataId)}
        <input type="checkbox" name="{$form.field}[]" value="{$k}" title="{$v}" checked>
        {else}
        <input type="checkbox" name="{$form.field}[]" value="{$k}" title="{$v}">
        {/if}
        <?php } ?>
    </div>
</div>